/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.stubs;

import commonlib.ui.LoginAdmin;

/**
 *
 * @author daniel.camacho.rodriguez
 */
public class ControladorLoginAdminStub {

    private LoginAdmin vistaLogin = null;

    public ControladorLoginAdminStub(){
        if(vistaLogin == null) vistaLogin = new LoginAdminStub(this);
    }

    public void GoodPassword()
    {
        vistaLogin.off();
        vistaLogin.makeInvisible();
    }

    public void BadPassword()
    {
        vistaLogin.off();
        vistaLogin.makeErrorVisible();
    }

    public String GetRealPassword()
    {
        return "PROPblem?";
    }

    public void NoShowWindow()
    {
        vistaLogin.off();
        vistaLogin.makeInvisible();
    }

    public void AcceptarError()
    {
        vistaLogin.on();
        vistaLogin.makeErrorInvisible();
    }

}
